package com.gang.service;

import com.gang.pojo.CommonResult;
import com.gang.pojo.Datas;
import com.gang.pojo.Vp;
import org.fisco.bcos.sdk.abi.ABICodecException;
import org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair;
import org.fisco.bcos.sdk.transaction.model.exception.TransactionBaseException;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.UUID;

public interface BlockService {
    UUID getPubPriKey();

    String getDidAndToChain( String pub, String pri) throws Exception;

    UUID getVC(String did, String pub, String data, String pri);

    UUID getVP(String did,String pub,String data,String root,String sign, String pri);

    String verifyRoot(String data,int index);

    Boolean verifySign(int index,String data,String sign, String pub);

    String verifyDid(String vphash,String time);

    String getDid(String pri,String vphash);

    String deployContract(String pri);

    Datas setnft(String tokenURI,String pri,String addr);
}
